package com.aaa.ssm.entity;

import lombok.Data;

import java.util.List;

@Data
public class Permission {
    private Integer id;
    private Integer pid;
    private String type;
    private String pname;
    private String url;
    private String icon;
    private Integer state;

    // 子权限列表，用于处理自连接查询的结果
    private List<Permission> subMenu;
}